﻿using System;
using System.Collections.Generic;
using System.Text;
using yb.commerce.Model;
using yb.commerce.DAL;
namespace yb.commerce.BLL
{
    public class MemberAddressBusiness
    {
        public bool Add(MemberAddress memberAddress)
        {
            return new MemberAddressDAO().Add(memberAddress);
        }
        public bool Delete(int Id)
        {
            return new MemberAddressDAO().Delete(Id);
        }
        public bool Update(MemberAddress memberAddress)
        {
            return new MemberAddressDAO().Update(memberAddress);
        }
        public MemberAddress GetEntity(int Id)
        {
            return new MemberAddressDAO().GetEntity(Id);
        }
        public DataRecordTable GetList(string fieldList, string orderField, bool orderBy, int pageIndex, int pageSize, string where)
        {
            return new MemberAddressDAO().GetList(fieldList,orderField,orderBy,pageIndex,pageSize,where);
        }
        public int GetRecordCount(string where)
        {
            return new MemberAddressDAO().GetRecordCount(where);
        }
    }
}
